/*
 * http://code.google.com/p/anttesttools/
 * slf4j+logback 使用
 * site: http://www.slf4j.org/   http://logback.qos.ch/
 * jar: slf4j-api-*.jar logback-core-*.jar logback-classic-*.jar
 */
package anttesttools.slf4j;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author anttesttools
 */
public class SLF4J
{

    private static Logger log = LoggerFactory.getLogger(SLF4J.class);

    public static void main(String[] args)
    {
        log.debug("debug");
        String str = "this is info";
        log.info("{}", str);
        String str2 = "警告";
        log.warn("这是一个{}", str2);
    }
}
